﻿using System;
using Model.Base;
using Model.Config;
namespace Model.Cms
{
    /// <summary>
    /// 模型层，内容管理，广告
    /// </summary>
    public class BlockInfo : BaseSystemInfo
    {
        /// <summary>
        /// 区块编号
        /// </summary>
        public int BlockID { get; set; }
        /// <summary>
        /// 术语对象
        /// </summary>
        public TermInfo BlockCategory { get; set; }
        /// <summary>
        /// 区块名
        /// </summary>
        public string BlockName { get; set; }
        /// <summary>
        /// 区块类别
        /// </summary>
        public string BlockType { get; set; }
        /// <summary>
        /// 区块尺寸
        /// </summary>
        public string BlockSize { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string Filepath { get; set; }
        /// <summary>
        /// 跳转链接
        /// </summary>
        public string Link { get; set; }
        /// <summary>
        /// 链接目标
        /// </summary>
        public string LinkTarget { get; set; }
        /// <summary>
        /// 区块内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 区块排序
        /// </summary>
        public int Rank { get; set; }
    }

    /// <summary>
    /// 模型层，社区，区块条件
    /// </summary>
    public class BlockCondition : BaseSystemCondition
    {
        /// <summary>
        /// 术语编号
        /// </summary>
        public int BlockCategoryID { get; set; }
        /// <summary>
        /// 术语标签
        /// </summary>
        public string BlockCategoryLabel { get; set; }
        /// <summary>
        /// 区块类别
        /// </summary>
        public string BlockType { get; set; }
    }
}
